package dao

import "gorm.io/gorm"

type User struct {
	gorm.Model
	Name    string `gorm:"type:varchar(20);not null;comment:用户名"`
	Mobile  string `gorm:"type:char(11);not null;comment:手机号"`
	Address string `gorm:"type:varchar(255);not null;comment:地址"`
}

type Package struct {
	gorm.Model
	Weight      float64 `gorm:"type:decimal(10,2);not null;comment:重量:单位为千克"`
	Destination string  `gorm:"type:varchar(255);not null;comment:目的地地址"`
	Urgent      bool    `gorm:"type:tinyint(1);default:1;not null;comment:是否加急:1-是,2-否"`
}
